package com.demo.petshop.entity;

import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.Table;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serial;
import java.io.Serializable;
import java.util.List;

/**
 *  实体类。
 *
 * @author lenovo
 * @since 2025-06-11
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Table(value = "orders")
public class Orders implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @Id
    private Integer orderId;

    private Integer userId;

    private String orderNumber;

    private Double totalAmount;

    private String status;

    private Integer addressId;

    private String paymentMethod;

    private String paymentStatus;

    private Double shippingFee;

    private Double discountAmount;

    private String remark;

    private String createdAt;

    private String paidAt;

    private String shippedAt;

    private String completedAt;

    private String cancelledAt;

    @Column(ignore = true)
    private String storeName;

    @Column(ignore = true)
    private Products items;

    @Column(ignore = true)
    private List<Products> productsItems;

    @Column(ignore = true)
    private ProductReviews productReviews;

    @Column(ignore = true)
    private List<OrderItems> orderItems;

    @Column(ignore = true)
    private Integer storeId;

    @Column(ignore = true)
    private Integer specId;



}
